
//打开窗体
function open_window(title,el,width,height){
	layer.open({
		type: 1,
		anim :4,
		isOutAnim:true,
		title: title,
        area: [width+'px', height+'px'],
	    content: $(el),
	});	
}

//退出登录
function loginout(url) {
	//退出登录
    layer.confirm('确认要退出系统吗？', {
        btn: ['确定','取消'] //按钮
    }, function(){
        layer.load();
        //此处演示关闭
        setTimeout(function(){
            layer.closeAll('loading');
            window.location.href = url;
        }, 1000);
    });
}